﻿using System.Data;
using System.Collections;
using System.Collections.Generic;
using uIBTv.Domain;


namespace uIBTv.Model
{
    public class BoPhanCollection: CollectionBaseCustom
    {
        public BoPhan this[int index]
        {
            get { return (BoPhan)List[index]; }
            set { List[index] = value; }
        }

        //		public System.Data.DataSet DataSetBoPhan
        //		{
        //			get
        //			{
        //				DataSet ds = new DataSet();
        //				ds.Tables.Add("BoPhan");
        //				ds.Tables[0].Columns.Add("");
        //			}
        //		}

        public int Add(BoPhan value)
        {
            return List.Add(value);
        }

        public void AddRange(BoPhan[] value)
        {
            for (int i = 0; i < value.Length; i++) { Add(value[i]); }
        }

        public void AddRange(BoPhanCollection value)
        {
            for (int i = 0; i < value.Count; i++) { Add(value[i]); }
        }

        public bool Contains(BoPhan value)
        {
            return List.Contains(value);
        }

        public void CopyTo(BoPhan[] array, int index)
        {
            List.CopyTo(array, index);
        }

        public int IndexOf(BoPhan value)
        {
            return List.IndexOf(value);
        }

        public void Insert(int index, BoPhan value)
        {
            List.Insert(index, value);
        }

        public void Remove(BoPhan value)
        {
            List.Remove(value);
        }
    }
}
